package nirvana.core.security;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * SecurityCredential
 *
 * @author linkanyway
 * @version 1.0
 * @date 2022/04/08 20:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SecurityCredential {

    /**
     * user id
     */
    private Long id;


    /**
     * username
     */
    private String username;


    /**
     * todo: change to roles list!!
     * roleId list
     */
    private List<Long> roleIds;


    /**
     * 企业id
     */
    private Long tenantId;

    /**
     * 是否为系统企业用户
     */
    private Boolean isSystemTenant;

    /**
     * 用户类型  1:后台用户
     */
    private Integer userType;

    /**
     * 是否未刷新token
     */
    private Boolean isRefresh;


    /**
     * 登录时间
     */
    private Timestamp loginTime;

}